<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text">
        </div>
    </div>
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Product_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-product_id" class="form-control selectpage" data-source="clothmaking_product/index" name="row[product_id]" type="text" value="">
        </div>
    </div> -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Order_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-order_id"  data-source="clothmaking_orders/index" data-field="name" class="form-control selectpage" name="row[order_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">客户需求:</label>
        <div class="col-xs-12 col-sm-8">
            <table id="customer-demand-table">
            </table>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Recipe_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-recipe_id" data-rule="required" data-source="clothmaking_recipe/index" data-field="title" class="form-control selectpage" name="row[recipe_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">配方详情</label>
        <div id="recipe_detail" class="col-xs-12 col-sm-8">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Kettle_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-kettle_id" data-source="clothmaking_kettle/index" data-order-by="id"    data-field="title" class="form-control selectpage" name="row[kettle_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Formula_process_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-formula_process_id" data-source="production_recipe_process/index" data-field="process_name" class="form-control selectpage" name="row[formula_process_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Coating_process_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-coating_process_id" data-source="production_coating_process/index" data-field="process_name" class="form-control selectpage" name="row[coating_process_id]" type="text" value="">
        </div>
    </div>
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Plc_tech_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-plc_tech_id" data-source="clothmaking_boiler_plc/index" data-field="name" class="form-control selectpage" name="row[plc_tech_id]" type="text" value="">
        </div>
    </div> -->
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Product_inspection_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-product_inspection_id" data-source="clothmaking_testing_new/index" data-field="id" class="form-control selectpage" name="row[product_inspection_id]" type="text" value="">
        </div>
    </div> -->
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Packing_inspection_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-packing_inspection_id" data-source="package_material/index" data-field="name" class="form-control selectpage" name="row[packing_inspection_id]" type="text" value="">
        </div>
    </div> -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Quantity')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-quantity" data-rule="required" class="form-control" name="row[quantity]" type="number" value="">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mark')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mark" class="form-control" name="row[mark]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="normal"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" class="form-control" name="row[weigh]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Production_recipe_process_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-production_recipe_process_id" data-source="production_recipe_process/index" data-field="process_name" data-rule="required" class="form-control selectpage" name="row[production_recipe_process_id]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Production_coating_process_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-production_coating_process_id" data-source="production_coating_process/index" data-field="process_name" data-rule="required" class="form-control selectpage" name="row[production_coating_process_id]" type="text">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
